Issue after upgrade - The route template 'getavatar/{avatarguid:guid}/{filename}' is already registe

Pradeep Pss asked on November 29, 2022 22:47

Hello,

I have recently upgraded a site from Kentico 12 MVC to Kentico 13 MVC, I am seeing the following error in the event log. Apart from this one error in the event log, everything seems to function as expected.

Event ID:76766
Event type:Error
Event time:11/29/2022 3:06:17 PM
Source:TypeManager
Event code:PREINIT
IP address:
Description:Message: The route template 'getavatar/{avatarguid:guid}/{filename}' is already registered.
Parameter name: descriptor

Exception type: System.ArgumentException
Stack trace:
at CMS.Base.Routing.HttpHandlerRouteTable.Register(RegisterHttpHandlerAttribute descriptor)
at CMS.Core.TypeManager.PreInitializeTypes(Assembly assembly)
Machine name:Development
Event URL:
URL referrer:
User agent:

Is there a way we can resolve this issue? Thanks!

Correct Answer

Dmitry Bastron answered on November 30, 2022 08:28

Hi Pradeep,

There was a similar question here, please check out if clearing CMS references in your MVC project would help you as well.

1 votesVote for this answer Unmark Correct answer

Recent Answers


Pradeep Pss answered on November 30, 2022 23:05

Thanks Dmitry

Removed the Xperience Library Nuget package and found there were a few manual CMS References from Lib, Cleared those out and it worked well.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.